import request from '@/utils/request'

// 查询基础设施列表
export function listGoodsFacility(query) {
  return request({
    url: '/mall/goodsFacility/list',
    method: 'get',
    params: query
  })
}

// 查询基础设施详细
export function getGoodsFacility(id) {
  return request({
    url: '/mall/goodsFacility/' + id,
    method: 'get'
  })
}

// 新增基础设施
export function addGoodsFacility(data) {
  return request({
    url: '/mall/goodsFacility',
    method: 'post',
    data: data
  })
}

// 修改基础设施
export function updateGoodsFacility(data) {
  return request({
    url: '/mall/goodsFacility',
    method: 'put',
    data: data
  })
}

// 删除基础设施
export function delGoodsFacility(id) {
  return request({
    url: '/mall/goodsFacility/' + id,
    method: 'delete'
  })
}

// 导出基础设施
export function exportGoodsFacility(query) {
  return request({
    url: '/mall/goodsFacility/export',
    method: 'get',
    params: query
  })
}